<template>
  <div>
   <div v-for="(item,index) of menus" :key="index">
     {{item.id}}:{{item.name}}
     <button >删除</button>
   </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      menus:[
      {id:1,name:"菜1"},
      {id:2,name:"菜2"},
      {id:3,name:"菜3"},
      {id:4,name:"菜4"},
      {id:5,name:"菜5"},
    ]
    }
  }
}
</script>
